#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include <string>  
#include"vector.h"
using namespace std;
void test1() {
	vector<int> v(10, 1);
	/*int sz = v.capacity();
	for (int i = 0; i < 100; ++i) {
		v.push_back(i);
		if (sz != v.capacity()) {
			sz = v.capacity();
			cout << "capacity changed:" << sz << endl;
		}
	}*/
	//cout << v.size()<<endl;
	//cout << v.capacity()<<endl;
	//v.reserve(9);
	//cout << v.size() << endl;
	//cout << v.capacity() << endl;
	//v.reserve(11);
	//cout << v.size() << endl;
	//cout << v.capacity() << endl;

	v.insert(v.begin(), 2);
	/*for (auto e : v) {
		cout << e << " ";
	}*/

	vector<int> v1(5,1);

	vector<vector<int>> vv(10, v1);
	vv[2][1] = 2;
	for (size_t i = 0; i < vv.size(); i++) {
		for (size_t j = 0; j < vv[i].size(); j++) {
			cout << vv[i][j] << " ";
		}
		cout << endl;
	}

};
int main() {
	/*std::string pi = "pi is " + std::to_string(3.1415926);
	std::cout << pi << '\n';	*/
	//test1();
	xs::test_vector1();
	return 0;
}